In [ ]:
import warnings
import matplotlib.pyplot as plt
import pandas
import seaborn
import pycvc
warnings.simplefilter("ignore")
palette = seaborn.color_palette('deep', n_colors=6)
seaborn.set(style='ticks', context='paper', rc={'text.usetex': False})
%matplotlib inline
In [ ]:
hydro = pandas.read_csv('output/tidy/hydro_simple.csv')
In [ ]:
fg = pycvc.viz.hydro_histogram(hydro, hue='site', row='has_outflow', save=False)
pycvc.viz.savefig(fg.fig, 'Hist_Site_Outflow', extra='HydroHistogram')
In [ ]:
fg = pycvc.viz.hydro_histogram(hydro, row='site', col='has_outflow', hue='season',
hue_order=['winter', 'spring', 'summer', 'autumn'],
margin_titles=True, palette='BrBG_r', save=False)
pycvc.viz.savefig(fg.fig, 'Hist_Site_Outflow_Season', extra='HydroHistogram')
In [ ]:
fg = pycvc.viz.hydro_histogram(hydro, col='site', hue='year', col_wrap=2, save=False)
pycvc.viz.savefig(fg.fig, 'Hist_Site_Year', extra='HydroHistogram')
In [ ]:
fg = pycvc.viz.hydro_histogram(hydro.query("site == 'ED-1'"), palette='Blues', save=False)
pycvc.viz.savefig(fg.fig, 'Hist_ED1only', extra='HydroHistogram')